<?php
/**
 * Created by PhpStorm.
 * User: sun
 * Date: 2018/8/16
 * Time: 15:39
 */
/*Route::resource('enters','Admin\EnterController',[
    'only'=>['index','edit','update','destroy'],
]);*/
Route::group(['prefix' => 'admin', 'namespace' => 'Admin'], function () {
    //后台登录
    Route::get('/login', 'EnterController@index');
    //登录处理
    Route::post('/login', 'EnterController@login');
    //后台登录主页
    Route::get('/index', 'EnterController@index');
    //退出
    Route::get('/logout', 'EnterController@destroy');
    //修改密码
    Route::get('/changePassword', 'MyController@passwordEdit');
    Route::post('/changePassword', 'MyController@passwordUpdate');
    //栏目管理
    Route::resource('category', 'CategoryController');
    //文章管理
    Route::resource('article', 'ArticleController');
});